<!DOCTYPE html>
<html>
<head>
<!-- 
资源发布列表页：列表包括 新建的资源，等待发布的资源，发布审核中的资源，需要用户审核的资源
>资源查询：按名称查询，查询|重置|新建
>列表显示：资源，操作：按钮： 
>资源状态     操作：
草稿：	查看,修改,删除,发布
审核中：查看,
审核： 查看，审核
-->
<title>资源发布</title>
<#include "commonRef.ftl">
</head>
<body>

<div class="tab-content">
	<div class="custom-container">
	<form id="searchForm" method="post">
		<nav class="navbar navbar-default" role="navigation" style="margin-bottom:10px;">
  			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    			<div class="navbar-form navbar-left" role="search" >
    				<label class="control-label" style="padding:0 3px 0 0;">资源名称:</label>
	      			<div class="form-group">
    	    			<input type="text" class="form-control list-data" id="qTitle" name="qTitle" 
    	    				placeholder="标题" value='${RequestParameters["qTitle"]!}'>
    	    		</div>
    	    		<label class="control-label" style="padding:0 3px 0 10px;">状态:</label>
    	    		<div class="form-group">
    	    			<select  class="form-control list-data" id="qStatus" name="qStatus">
    	    				<option value="" >请选择</option>
    	    				<option value="0" <#if RequestParameters["qStatus"]=="0">selected</#if>>草稿</option>
    	    				<option value="1" <#if RequestParameters["qStatus"]=="1">selected</#if>>发布审核中</option>
    	    				<option value="2" <#if RequestParameters["qStatus"]=="2">selected</#if>>发布通过</option>
    	    			</select>
    	    		</div>
      				<button type="button" style="margin-left:10px;" class="btn btn-default" id="btnClear">重置</button>
      				<button type="button" class="btn btn-default" id="btnSearch">查询</button>
      				<button type="button" id="btnNewRes" class="btn btn-default ">新建</button>
    			</div>    			
  			</div><!-- /.navbar-collapse -->
		</nav>
	</form>	
<!--################################################################################################################-->
	<div id="publishList-target"></div>	
<#include "deleteDlg.ftl"> 
<script type="text/javascript">
var str="${host}",myPublishName="${myPublishName}";
document.domain=str.substring(str.indexOf('.')+1,str.length);
$(function(){
	seajs.use(['resources/js/rescatalogMix/resPublishX/resPublish_main.js'], function(ResPublishMain){
		ResPublishMain.init({
			baseUrl:"${rc.getContextPath()}",
			userId:${userId!undefined},
			page:{
				pageSize:${RequestParameters["pageSize"]!10},
				pageNo:${RequestParameters["pageNo"]!1}}
		});
	});
});
</script>
</body>
</html>
